package com.erp.produce.dao;

import com.erp.produce.entity.ProductionTask;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProductionTaskDao extends JpaRepository<ProductionTask,Long> {
    List<ProductionTask> findAllByCooperativesNameLike(Pageable pageable,String name);

    List<ProductionTask> findAllByOrderId(Long orderId);
}
